package com.bifang.module.file.web;

import com.bifang.module.file.common.vo.FileClassEditVO;
import com.bifang.module.file.common.vo.FileClassVO;
import com.bifang.module.file.core.biz.FileClassMIntegration;
import com.github.pagehelper.PageInfo;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;

@SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT)
public class FileClassM {
    @Autowired
    FileClassMIntegration fileClassMIntegration;

    @Test
    public void getFileClassList() {
        FileClassVO fileClassVO = new FileClassVO();
        PageInfo<FileClassVO> pageInfo = fileClassMIntegration.getFileClassList(fileClassVO);
        System.out.println(pageInfo.getPages());
        System.out.println(pageInfo.getList().size());
    }

    @Test
    public void addFileClass() {
        FileClassEditVO fileClassEditVO = new FileClassEditVO();
        fileClassMIntegration.addFileClass(fileClassEditVO);
    }
}
